package net.dlz.example.service;



import net.dlz.example.domain.District;
import net.dlz.example.domain.Door;
import net.dlz.example.domain.SearchDoorResponse;
import net.dlz.example.domain.Street;

import java.util.List;

public interface DoorService {
    SearchDoorResponse listDoor(Integer pageSize, Integer pageNum);

    Door findDoorByPrimaryKey(String id);

    int saveDoor(Door door);

    //    List<Door> searchDoors(SearchDoorRequest request);
    int deleteDoorByPrimsryKey(String id);

    List<Door> findAllDoor();

    List<Door> getByLatitudeandLongitude();

    List<District> getAllDistrict();

    List<Street> getStreetByDistrictId(String id);

    List<Door> getDoorByStreetId(String id);

    List<Door> streetDoor(String streetName);

    List<Door> selectdoorByType(Integer type);

}
